
import Vertor2 from './Vector2'

export type Gravity = number;
export type Mass = number;
export type Acceleration = Vertor2;
export type Impulse = number;
export type Velocity = Vertor2;
export type Resistince = number;
export type Force = Vertor2;

export enum ForceMode {
    Impulse = 'Impulse',
    Acceleration = 'Acceleration',
    Velocity = 'Velocity',
    Force = 'Force',
}


export function getAccelerationByForce(force: Force, mass: Mass) {
    return new Vertor2(force.x / mass, force.y / mass)
}






function addForce(vec: Vertor2, forceMode: ForceMode) {
    switch (forceMode) {
        case ForceMode.Acceleration:
    }
}

















